import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/deployRec',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/deployRec/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/deployRec',
    method: 'put',
    data
  })
}

export function statisticQuery(data) {
  return request({
    url: '/api/deployStatistic/query?env=' + data.env + '&beginTime=' + data.beginTime + '&endTime=' + data.endTime,
    method: 'get'
  })
}

export default { add, edit, del }
